package com.forenow.demo3;

public class Sub extends Base {
    public Sub(){
        //调用父类的构造器，Base(String s)
       super("s");
    }
    public Sub(int a,int b){
        //调用自己的无参构造器
        this();
    }
    public Sub(String s1,String s2){
//      调用自己的构造器，Sub(int a,int b)
        this(1,2);
    }

    public static void main(String[] args) {
        Sub sub = new Sub("a","b");
    }
}
